package com.airnewslinkosky.ticket.model;

import java.io.Serializable;
//机构客户信息
public class CustomGroup implements Serializable{
	private static final long serialVersionUID = -1124842895670108900L;

	public String Name;//机构客户名称
	public String Agent;//销售代表
	public String Contact;//负责人
	public String Telephone;//固定电话
	public String Mobile;//移动电话
	public String Fax;//传真
	public String Email;//电子邮箱
	public String Address;//地址
	public String Zip;//邮编
	
	public String getRequestData() {
		StringBuffer sb = new StringBuffer();
		sb.append("<CustomGroup>")
		  .append("<Name>").append(this.Name == null ? "" : this.Name).append("</Name>")
		  .append("<Agent>").append(this.Agent == null ? "" : this.Agent).append("</Agent>")
		  .append("<Contact>").append(this.Contact == null ? "" : this.Contact).append("</Cotact>")
		  .append("<Telephone>").append(this.Telephone == null ? "" : this.Telephone).append("</Telephone>")
		  .append("<Mobile>").append(this.Mobile == null ? "" : this.Mobile).append("</Mobile>")
		  .append("<Fax>").append(this.Fax == null ? "" : this.Fax).append("</Fax>")
		  .append("<Email>").append(this.Email == null ? "" : this.Email).append("</Email>")
		  .append("<Address>").append(this.Address == null ? "" : this.Address).append("</Address>")
		  .append("<Zip>").append(this.Zip == null ? "" : this.Zip).append("</Zip>")
		  .append("</CustomGroup>");
		return sb.toString().replace("<", "&lt;").replace(">", "&gt;");
	}
}
